﻿<%@ Page Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AddProduct.aspx.cs"
    Inherits="VCN.admin.AddProduct" %>

<asp:Content ID="Content17" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <table width="100%" cellspacing="3" cellpadding="3" border="0">
        <tbody>
            <tr>
                <th scope="col" class="title" colspan="2" style="height: 32px">
                    <h2 style="color: #0099FF; font-size: x-large">
                        THÊM SẢN PHẨM MỚI</h2>
                </th>
            </tr>
            <tr>
                <td colspan="2" class="row" align="center" style="height: 5px">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                        HeaderText="Bạn chưa nhập các nội dung sau :" style="text-align: left" />
                </td>
            </tr>
            <tr>
                <td class="row" 
                    
                    
                    style="height: 32px; width: 18%; text-align: left; color: #0099FF; font-weight: bold;">
                    Tên loại sản phẩm
                </td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <asp:DropDownList ID="ddl_Category" runat="server" Width="258px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="row" 
                    
                    
                    style="height: 32px; width: 18%; text-align: left; color: #0099FF; font-weight: bold;">
                    Tên sản phẩm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <asp:TextBox ID="txt_ProductName" runat="server" Width="258px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_ProductName" runat="server" ControlToValidate="txt_ProductName"
                        ErrorMessage="Chưa nhập tên sản phẩm">(*)</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="row" 
                    
                    
                    style="height: 32px; width: 18%; text-align: left; color: #0099FF; font-weight: bold;">
                    Mã sản phẩm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <asp:TextBox ID="txt_ProductKey" runat="server" Width="258px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_ProductKey" runat="server" ControlToValidate="txt_ProductKey"
                        ErrorMessage="Chưa nhập mã sản phẩm">(*)</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="row" 
                    style="height: 61px; width: 18%; text-align: left; color: #0099FF; font-weight: bold;">
                    Mô tả&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                </td>
                <td width="46%" align="left" class="row" style="height: 61px; width: 70%;">
                    <asp:TextBox ID="txt_ProductDescription" runat="server" Width="362px" Height="131px"
                        TextMode="MultiLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_Des" runat="server" ControlToValidate="txt_ProductDescription"
                        ErrorMessage="Chưa nhập mô tả sản phẩm">(*)</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="row" 
                    
                    style="height: 32px; width: 18%; text-align: left; color: #0099FF; font-weight: bold;">
                    Ảnh sản phẩm&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
                </td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <br />
                    <br />
                    <asp:FileUpload ID="FileUpload" runat="server" />
                    &nbsp;<asp:Label ID="lbl_Error" runat="server" Font-Bold="True" ForeColor="Red" 
                        Text="(*) Phải chọn ảnh sản phẩm" Visible="False"></asp:Label>
                    <br />
                    <br />
                </td>
            </tr>
            <tr>
                <td height="43" align="right" class="save" 
                    style="width: 18%; color: #0099FF; font-weight: bold;">
                    &nbsp;
                </td>
                <td height="43" align="left">
                    &nbsp;<asp:Button ID="btnAdd" runat="server" Text="Thêm mới" OnClick="btnAdd_click" />
                    &nbsp;<asp:Button ID="btnReset" runat="server" Text="Xóa trắng" OnClick="btnReset_Click"
                        CausesValidation="False" />
                    &nbsp;<asp:Button ID="btnCancel" runat="server" Text="Thoát" CausesValidation="False"
                        OnClick="btnCancel_click" />
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
